package cn.stylefeng.guns.modular.system.service;

import cn.stylefeng.guns.modular.system.entity.Activity;
import cn.stylefeng.guns.modular.system.entity.BankCard;
import cn.stylefeng.guns.modular.system.mapper.ActivityMapper;
import cn.stylefeng.guns.modular.system.mapper.BankCardMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 管理员表 服务实现类
 * </p>
 *
 * @author stylefeng
 * @since 2018-12-07
 */
@Service
public class ActivityService extends ServiceImpl<ActivityMapper, Activity> {


    public List<Map<String, Object>> selectActivitys(String startTime, String endTime) {
        return this.baseMapper.selectActivitys(startTime, endTime);
    }

    public void insertThisActivity(Long userId, Long activityId) {
        this.baseMapper.insertThisActivity(userId, activityId);
    }

    public List<Long> selectActivityId(Long userId) {
        return this.baseMapper.selectActivityId(userId);
    }

    public List<Map<String, Object>> selectMyActivitys(List<Long> activityIds) {
        return this.baseMapper.selectMyActivitys(activityIds);
    }

    public List<Map<String, Object>> selectDiscount(List<Long> activityIds) {
        return this.baseMapper.selectDiscount(activityIds);
    }
}
